<template>
<div id="wrap">
    <transition name="fade">
        <Loading @complete="loadingOver" v-if="$store.state.page == 'loading'"/>
    </transition>
    <Music />
</div>
</template>

<script>
import Loading from '@/components/Loading.vue'
import Music from '@/components/Music.vue'
import { wxConfig, shareInfo } from '@/utils/wxShare'

export default {
    name: 'Index',
    data (){
        return {

        }
    },
    components: {
        Loading,
        Music,
    },
    computed: {

    },
    methods: {
        loadingOver(){
            // this.$store.commit('setPage', 'stage');
            // this.$store.commit('setPage', 'light');
            console.log('loadingOver');
        },
    },
    mounted () {

        // this.$get('1.php',{action: 'getData'},(res)=>{
        //     console.log('done',res)
        // })
        wxConfig(shareInfo)
    }
}
</script>

<style lang="scss" scoped>

</style>
